﻿// ***********************************************************************
// Assembly         : STX.Domain
// Author           : seven.x
// Created          : 12-26-2013
//
// Last Modified By : seven.x
// Last Modified On : 01-17-2014
// ***********************************************************************
// <copyright file="TabAdministrator.cs" company="驰创数码">
//     Copyright (c) 驰创数码. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************using System;

using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace STX.Domain
{
    /// <summary>
    /// Class TabAdministrator.
    /// </summary>
    public class TabAdministrator:BaseEntity
    {
        /// <summary>
        /// Gets or sets the name of the user.
        /// </summary>
        /// <value>The name of the user.</value>
        public string UserName { get; set; }
        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        /// <value>The password.</value>
        public string Password { get; set; }
        /// <summary>
        /// Gets or sets the last login ip.
        /// </summary>
        /// <value>The last login ip.</value>
        public string LastLoginIp { get; set; }
        /// <summary>
        /// Gets or sets the last login time.
        /// </summary>
        /// <value>The last login time.</value>
        public DateTime LastLoginTime { get; set; }
        /// <summary>
        /// Gets or sets the login times.
        /// </summary>
        /// <value>The login times.</value>
        public int LoginTimes { get; set; }
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }
        /// <summary>
        /// Gets or sets the tel.
        /// </summary>
        /// <value>The tel.</value>
        public string Tel { get; set; }
        /// <summary>
        /// Gets or sets the photo.
        /// </summary>
        /// <value>The photo.</value>
        public string Photo { get; set; }
        /// <summary>
        /// Gets or sets the mobile.
        /// </summary>
        /// <value>The mobile.</value>
        public string Mobile { get; set; }
        /// <summary>
        /// Gets or sets the address.
        /// </summary>
        /// <value>The address.</value>
        [Description("地址")]
        public string Address { get; set; }
        /// <summary>
        /// Gets or sets the decimal mail.
        /// </summary>
        /// <value>The decimal mail.</value>
        public string EMail { get; set; }
        /// <summary>
        /// Gets or sets a value indicating whether this instance is disabled.
        /// </summary>
        /// <value><c>true</c> if this instance is disabled; otherwise, <c>false</c>.</value>
        public bool IsDisabled { get; set; }
        /// <summary>
        /// Gets or sets the session unique identifier.
        /// </summary>
        /// <value>The session unique identifier.</value>
        public string SessionId { get; set; }
        /// <summary>
        /// Gets or sets the token.
        /// </summary>
        /// <value>The token.</value>
        public string Token { get; set; }
        /// <summary>
        /// Gets or sets the add time.
        /// </summary>
        /// <value>The add time.</value>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// Gets or sets the error count.
        /// </summary>
        /// <value>The error count.</value>
        public int ErrorCount { get; set; }
        /// <summary>
        /// Gets or sets the last error date time.
        /// </summary>
        /// <value>The last error date time.</value>
        public DateTime LastErrorDateTime { get; set; }


        /// <summary>
        /// Gets or sets the position.
        /// </summary>
        /// <value>The position.</value>
        public PositionEnum Position { get; set; }

        public virtual List<BizArea> Areas { get; set; }
    }
}
